/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.processing.reduce.klsh.kmeaning.base;

import java.util.List;
import java.util.ListIterator;
import java.util.Vector;

/**
 *
 * @author nastya
 */
public class Codepage {
    public Vector<Centroid> centroids = new Vector<Centroid>();

    private static long availableIndex = 0;
    
    private static long nextIndex(){
        availableIndex++;
        return availableIndex;
    }

    private long index;

    public long getIndex() {
        return index;
    }
    
    public Codepage(List<Data> randomValues) {
        index = nextIndex();
        for (Data data : randomValues) {
            centroids.add(new Centroid(data.getKey()));
        }
    }

    public ListIterator<Centroid> listIterator() {
        return centroids.listIterator();
    }

    
    
    
}
